#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int DeBi(int n, int k) {
	if (n == 0)
		return 0;
	if (k == 0)
		return 1;
	return n * DeBi(n,k - 1);
}

int main() {
	int n = 0;
	int k = 0;
	scanf("%d%d", &n, &k);
	int ret = DeBi(n, k);
	printf("ret=%d", ret);
	return 0;
}